package io.qar.coupons.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 3.0 2024-06-11
 */
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class CouponsExcel {
    @ExcelProperty(value = "用户ID", index = 0)
    private Long userId;
    @ExcelProperty(value = "餐厅ID", index = 1)
    private Long restaurantId;
    @ExcelProperty(value = "优惠券代码", index = 2)
    private String code;
    @ExcelProperty(value = "折扣额度", index = 3)
    private BigDecimal discount;
    @ExcelProperty(value = "有效期开始时间", index = 4)
    private Date validFrom;
    @ExcelProperty(value = "有效期结束时间", index = 5)
    private Date validUntil;
    @ExcelProperty(value = "使用次数限制", index = 6)
    private Integer usageLimit;
    @ExcelProperty(value = "使用状态", index = 7)
    private Object usedStatus;
}